import {defineStore, storeToRefs} from 'pinia'

export const useStudioGoodsStore = defineStore('studioGoodsInfo', {
    state: () => ({
        serviceList: []
    }),
    persist: {
        storage: {
            getItem: (key : string) => uni.getStorageSync(key),
            setItem: (key : string, value : string) => uni.setStorageSync(key, value)
        }
    }

})

export const useStudioGoodsStoreToRefs = () => {
    return storeToRefs(useStudioGoodsStore())
}
export const reset = () => {
	useStudioGoodsStore().$reset()
}